package 分支语句练习;
/*小明参加期末Java考试，通过考试成绩，判断其Java等级，成绩范围[0,100]*/
public class Demo2 {
    public static void main(String[] args) {
        int score=85;
        if (score>=0&&score<=100){
            if (score>=90&&score<100){
                System.out.println("A");
            }else if (score>=80&&score<90){
                System.out.println("B");
            }else if (score>=60&&score<80){
                System.out.println("C");
            }else {
                System.out.println("D");
            }
        }else {
            System.out.println("输入错误");
        }
    }
}
